<?php

namespace common\models\tsline;

use Yii;

/**
 * This is the model class for table "{{%ts_dynamic_comment}}".
 *
 * @property int $id
 * @property int $user_id 用户ID
 * @property int $dynamic_id 动态ID
 * @property int $comment_id 评论ID
 * @property string $content 评论内容
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 * @property int $deleted_at
 */
class TslineDynamicComment extends \yii\db\ActiveRecord {

    use \common\traits\TimestampBehavior;

    /**
     * @inheritdoc
     */
    public static function tableName() {
        return '{{%ts_dynamic_comment}}';
    }

    /**
     * @inheritdoc
     */
    public function rules() {
        return [
            [['user_id', 'dynamic_id', 'comment_id', 'status', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['content'], 'required'],
            [['content'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'user_id' => '用户ID',
            'dynamic_id' => '动态ID',
            'comment_id' => '评论ID',
            'content' => '评论内容',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
            'deleted_at' => 'Deleted At',
        ];
    }

}
